#列表判断其中是否有重复元素
list=[23,11,12,23,9,1,4]
new_list=[]
for i in list:
    if i not in new_list:
        new_list.append(i)
if len (list)==len(new_list):
    print("没有重复元素")
else:
    print("有重复元素")